<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<div>
	<form id="infoForm" target="hiddenFrame" action="${path}/mc/associatorsaveInfo" method="post" enctype="multipart/form-data">
		<input type="hidden" name="entity.id" value="${entity.id}" />
		<fieldset style="padding-left: 10px;">
			<table>
			  	<tr>
			  		<td>账号</td>
			  		<td>
			  			<input type="text" name="entity.account" value="<c:choose><c:when test="${empty entity.account}"></c:when><c:otherwise>${entity.account}</c:otherwise></c:choose>"
			  				class="{required:true,messages:{required:'账号不能为空'}}"> 
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>昵称</td>
			  		<td>
			  			<input type="text" name="entity.name" value="<c:choose><c:when test="${empty entity.name}"></c:when><c:otherwise>${entity.name}</c:otherwise></c:choose>"
			  				class="{required:true,messages:{required:'昵称不能为空'}}"> 
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>头像</td>
			  		<td>
			  			<c:import url="/mc/common/imgPreview.jsp?hidName=entity.headPic.id&name=headPic.file&imgPath=${entity.headPic.id}&picId=${entity.headPic.id}&index=1" />
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>性别</td>
			  		<td>
			  			<select name="entity.sex" class="searchInputAndSelect" style="width: 120px">
			  				<option value="1">男</option>
			  				<option value="2">女</option>
			  			</select>
			  		</td>
			  	</tr>
			  	<tr>
			  	<tr>
			  		<td>联系方式</td>
			  		<td>
			  			<input type="text" name="entity.phone" value="<c:choose><c:when test="${empty entity.phone}"></c:when><c:otherwise>${entity.phone}</c:otherwise></c:choose>"
			  				class="{required:true,number:true,messages:{required:'联系方式不能为空',number:'请输入数字'}}"> 
			  		</td>
			  	</tr>
			  	<tr>
			  		<td type="hidden" name="entity.isAdmin" value=2></td>
			  	</tr>
			  	
		   </table>
		</fieldset>
	</form>
</div>
